package com.bw.mvp.P;

import com.bw.mvp.M.InitModel;
import com.bw.mvp.V.InitView;

/**
 * create by ertu
 * create on 2021/9/9
 * description
 */
public class BannerPretenter <V extends InitView,M extends InitModel> implements InitPretenter{
    protected  V view;
    protected M model;

    public BannerPretenter(V view, M model) {
        this.view = view;
        this.model = model;
    }

    @Override
    public void diserPretenter() {
        if (model!=null)
        {
            model=null;
            model.diserModel();
        }
        if (view!=null)
        {
            view=null;
        }
    }
}
